package cn.loioi.websocket.pool;

import org.apache.commons.pool2.PooledObject;
import org.apache.commons.pool2.impl.DefaultEvictionPolicy;
import org.apache.commons.pool2.impl.EvictionConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <br>
 * (c) Copyright 2016 by <br>
 * @description :验证设备状态 <br>
 * @file_name :EvictionPolicy.java <br>
 * @system_name :bs-iot <br>
 * @author :yyzh <br>
 * @创建时间 :2016年7月12日 上午11:29:19
 */
public class EvictionPolicy extends DefaultEvictionPolicy<Connecttion> {
	private Logger logger = LoggerFactory.getLogger(EvictionPolicy.class);

	@Override
	public boolean evict(EvictionConfig config, PooledObject<Connecttion> underTest, int idleCount) {
		Connecttion connecttion = underTest.getObject();
		return false;
	}
}
